<%-- 
    Document   : employeeLogin
    Created on : Oct 22, 2013, 1:25:33 AM
    Author     : h10t93
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Employee login!</h1>
        <script>
            function checkLogin()
            {
                var u=document.getElementById("txt_user").value;
                var	p=document.getElementById("txt_pass").value;		
                if(u=="" || p=="")
                {
                    alert("user or password not null !");
                }
            } 
        </script>
        <form id="f1" action="EmpServlet?action=login" method="POST">

            <table style="border:solid 1px #D6D6D6">
                <tr>
                    <td style="color:#f45">user:<td>
                    <td>
                        <input type="text" name="txtU"   placeholder="user name"></input>
                    </td>
                </tr>
                <tr>
                    <td style="color:#f45">password:<td>
                    <td>
                        <input type="password" name="txtP"  placeholder="password"></input>
                    </td>
                </tr>
                <tr>
                    <td><td>
                    <td>
                        <button type="submit" onclick="checkLogin()" >Login</button>
                    </td>
                </tr>
            </table>
        </form>
    </body>
</html>
